#include <stdio.h>

#define TRACE(x...) 
#define PRINT(x...) TRACE(printf(x))

#define rep(i,n) for (int i=0; i<n; i++)

int mat[110][110];
int r[110], c[110];
int n;
int s;
int wR, wC;

int main() {
	while (1) {
		scanf("%d", &n);
		if (!n) break;

		rep(i,n) rep(j,n) scanf("%d", &mat[i][j]);

		rep(i,n) {
			s=0;

			rep(j,n) {
				s+=mat[i][j];				
			}

			r[i]=s;
		}

		rep(j,n) {
			s=0;

			rep(i,n) {
				s+=mat[i][j];
			}

			c[j]=s;
		}
	
		wR=0; wC=0;
	
		rep(i,n) if (r[i]%2!=0) wR++;
		rep(i,n) if (c[i]%2!=0) wC++;

		TRACE(
			rep(i,n) printf("%d ", r[i]);
			printf("\n");
			rep(i,n) printf("%d ", c[i]);
			printf("\n");
			printf("%d %d\n", wR, wC);
		);

		if (!wR && !wC) { printf("OK\n"); continue; }
		if (wR>1 || wC>1) { printf("Corrupt\n"); continue; }
	
		rep(i,n) if (r[i]%2!=0) { wR=i; break; }
		rep(i,n) if (c[i]%2!=0) { wC=i; break; }

		printf("Change bit (%d,%d)\n", wR+1, wC+1);
	}

	return 0;
}
